home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr25
/
rxcalc.zip
/
MEMRECAL.CAL
< prev
next >
Wrap
Text File
|
1993-03-01
|
737b
|
14 lines
/* Rexx Calculator Memory Recall Key */
parse arg memory /* get the count of memories */
numeric digits CalcPrecision() /* set current precision */
numeric form value CalcForm() /* set current form */
if \datatype(memory, 'Whole') /* must be whole number */
then return 'Error' /* return error indicator */
if memory < 1 | memory >50 /* valid for counter */
then return 'Error' /* return error indicator */
'GET' trunc(memory) 'REGISTER' /* get current value */
'DISPLAY' register /* make current display */